#!/bin/bash

cd mct/monitor/mct-public/lib

ln -sf libACE.so.6.1.7 libACE.so.6
ln -sf libACE.so.6   libACE.so
ln -sf liblog4cpp.so.5.0.6 liblog4cpp.so.5
ln -sf liblog4cpp.so.5  liblog4cpp.so

cd ../test/mct_os_test

make clean
make

cd ../../lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(pwd)
echo $(pwd)
./mct_os_test

unlink libACE.so
unlink libACE.so.6
unlink liblog4cpp.so
unlink liblog4cpp.so.5